<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue-learn</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">

        <div v-for="addr in addrs" >{{addr}}</div>
        <div v-for="(addr, index) in addrs" >{{index+1}}:{{addr}}</div>

    </div>
</body>
<script>
    //定义vue对象
    new Vue({
        el:"#app",
        data:{
            addrs:["北京","上海","广州","深圳"]
        },
        methods: {
            
        },
    })
</script>

</html>